package com.wangmengtao.upms.exception;

import com.wangmengtao.upms.enums.ResponseCodeEnum;

/**
 * @ClassName: UpmsException
 * @Description: DOTO
 * @Author: WangMengtao
 * @Date: 2019/7/14 22:12
 * @version: 1.0
 **/
public class UpmsException extends RuntimeException {
    private Integer code;

    public UpmsException(ResponseCodeEnum responseCodeEnum) {
        super(responseCodeEnum.getMessage());
        this.code = responseCodeEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
